package com.zjitc.serviceedu.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 赵诚挚
 * @since 2024-10-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="EduWatchhistory对象", description="")
public class EduWatchhistory implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户ID，用于标识观看者")
    private Long userId;
    @ApiModelProperty(value = "视频ID")
    private Long vid;
    @ApiModelProperty(value = "课程ID")
    private Long courseId;

    @ApiModelProperty(value = "视频ID阿里云视频id")
    private String videoId;

    @ApiModelProperty(value = "记录用户观看的时间")
    private Date watchTime;

    @ApiModelProperty(value = "用户观看到的视频位置，以秒为单位")
    private Integer lastPosition;


    @ApiModelProperty(value = "创建时间")
    @JsonDeserialize(using = BaseEntity.CustomDateDeserializer.class)
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @JsonDeserialize(using = BaseEntity.CustomDateDeserializer.class)
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
